<%@page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html lang="en">

<body>
	
	<br>
	<table>
		<thead>
			<tr>
				<td>标题</td>
				<td>内容</td>
				<td>作者</td>
			</tr>
		</thead>
		<tr>
			<td>${blog.title }</td>
			<td>${blog.content }</td>
			<td>${blog.author }</td>
		</tr>
	</table>
	<table>
		<thead>
			<tr>
				<td>评论</td>
				<td>作者</td>
			</tr>
		</thead>
	<c:forEach items="${blog.comments }" var="commentVar">
		<tr>
			<td>${commentVar.comment }</td>
			<td>${commentVar.author }</td>
		</tr>
	</c:forEach>
		
	</table>
</body>

</html>
